const Welcome = resolve => require(['@/components/Home/Welcome'], resolve); //欢迎界面
//业务管理
const RechargeList = resolve => require(['@/components/Home/BusinessManage/RechargeList'], resolve); //充值列表
const TradeList = resolve => require(['@/components/Home/BusinessManage/TradeList'], resolve); //交易列表
const CoursesListIndex = resolve => require(['@/components/Home/BusinessManage/CoursesList/CoursesListIndex/index.vue'], resolve); //课程列表
const CoursesListDetails = resolve => require(['@/components/Home/BusinessManage/CoursesList/CoursesListDetails/index.vue'], resolve); //课程详情



const StudentOrderList = resolve => require(['@/components/Home/BusinessManage/StudentOrderList'], resolve); //学员下单列表
const ExchangeLIst = resolve => require(['@/components/Home/BusinessManage/ExchangeLIst'], resolve); //兑换列表
const RefundList = resolve => require(['@/components/Home/BusinessManage/RefundList'], resolve); //退款管理
const CommissionSettlementList = resolve => require(['@/components/Home/BusinessManage/CommissionSettlementList'], resolve); //佣金结算列表
const LecturerOrderList = resolve => require(['@/components/Home/BusinessManage/LecturerOrderList'], resolve); //讲师下单列表
//用户管理
const UserManagement = resolve => require(['@/components/Home/UsersManage/UserManagement'], resolve); //用户管理
const UserManagementIndex = resolve => require(['@/components/Home/UsersManage/UserManagement/UserManagementIndex'], resolve); //用户管理主界面
const UserDetails = resolve => require(['@/components/Home/UsersManage/UserManagement/UserDetails'], resolve); //用户管理详情

const LecturerManagement = resolve => require(['@/components/Home/UsersManage/LecturerManagement'], resolve); //讲师管理
const LecturerApplicationManagement = resolve => require(['@/components/Home/UsersManage/LecturerApplicationManagement'], resolve); //讲师申请管理
const BlacklistManagement = resolve => require(['@/components/Home/UsersManage/BlacklistManagement'], resolve); //黑名单管理
const MT4WhitelistManagement = resolve => require(['@/components/Home/UsersManage/MT4WhitelistManagement'], resolve); //MT4白名单管理
const MASTERAccountManagement = resolve => require(['@/components/Home/UsersManage/MASTERAccountManagement'], resolve); //MASTER账号管理
const LecturerModification = resolve => require(['@/components/Home/UsersManage/LecturerModification'], resolve); //讲师信息修改
const InspectorManagement = resolve => require(['@/components/Home/UsersManage/InspectorManagement'], resolve); //巡视员管理
//运营管理
const GrantPearls = resolve => require(['@/components/Home/OperationManage/GrantPearls'], resolve); //发放珍珠
const DeductPearls = resolve => require(['@/components/Home/OperationManage/DeductPearls'], resolve); //扣除珍珠
const ShareRecord = resolve => require(['@/components/Home/OperationManage/ShareRecord'], resolve); //分享记录
const MessageSending = resolve => require(['@/components/Home/OperationManage/MessageSending'], resolve); //消息发送
const SMSSending = resolve => require(['@/components/Home/OperationManage/SMSSending'], resolve); //短信发送
const SMSSendingLog = resolve => require(['@/components/Home/OperationManage/SMSSendingLog'], resolve); //短信发送日志

const ErrorHtml = resolve => require(['@/components/Home/ErrorHtml/'], resolve); //短信发送日志

export default  [{
        path: 'welcome',
        name: 'welcome',
        component:Welcome
    },{
      path: 'error',
      name: 'error',
      component:ErrorHtml
  },{
        path: 'menu_yw_cz',
        name: 'menu_yw_cz',
        component:RechargeList
    },{
      path: 'menu_yw_jy',
      name: 'menu_yw_jy',
      component:TradeList
    },{
      path: 'menu_yw_kc',
      name: 'menu_yw_kc',
      redirect:{
        name:'coursesListIndex'
      },
      component:CoursesListIndex,
      children:[{
        path: 'coursesListDetails',
        name:'coursesListDetails',
        component: CoursesListDetails
      },{
        path: 'coursesListIndex',
        name:'coursesListIndex',
        component: CoursesListIndex
      }]
    },{
      path: 'menu_yw_xyxd',
      name: 'menu_yw_xyxd',
      component:StudentOrderList
    },{
      path: 'menu_yw_dh',
      name: 'menu_yw_dh',
      component:ExchangeLIst
    },{
      path: 'menu_yw_tk',
      name: 'menu_yw_tk',
      component:RefundList
    },{
      path: 'menu_yw_yjjs',
      name: 'menu_yw_yjjs',
      component:CommissionSettlementList
    },{
      path: 'menu_yw_jsxd',
      name: 'menu_yw_jsxd',
      component:LecturerOrderList
    },{
      path: 'menu_yh_yh',
      name: 'menu_yh_yh',
      redirect:{
        name:'userManagementIndex'
      },
      component:UserManagement,
      children:[{
        path: 'userDetails',
        name:'userDetails',
        component: UserDetails
      },{
        path: 'userManagementIndex',
        name:'userManagementIndex',
        component: UserManagementIndex
      }]
    },{
      path: 'menu_yh_js',
      name: 'menu_yh_js',
      component:LecturerManagement
    },{
      path: 'menu_yh_jssq',
      name: 'menu_yh_jssq',
      component:LecturerApplicationManagement
    },{
      path: 'menu_yh_hmd',
      name: 'menu_yh_hmd',
      component:BlacklistManagement
    },{
      path: 'menu_yh_mt4',
      name: 'menu_yh_mt4',
      component:MT4WhitelistManagement
    },{
      path: 'menu_yh_master',
      name: 'menu_yh_master',
      component:MASTERAccountManagement
    },{
      path: 'menu_yh_jsxxxg',
      name: 'menu_yh_jsxxxg',
      component:LecturerModification
    },{
      path: 'menu_yh_xsy',
      name: 'menu_yh_xsy',
      component:InspectorManagement
    },{
      path: 'menu_operate_send_pearl',
      name: 'menu_operate_send_pearl',
      component:GrantPearls
    },{
      path: 'menu_operate_deduction_pearl',
      name: 'menu_operate_deduction_pearl',
      component:DeductPearls
    },{
      path: 'menu_operate_share_record',
      name: 'menu_operate_share_record',
      component:ShareRecord
    },{
      path: 'menu_operate_send_message',
      name: 'menu_operate_send_message',
      component:MessageSending
    },{
      path: 'menu_operate_send_sms',
      name: 'menu_operate_send_sms',
      component:SMSSending
    },{
      path: 'menu_operate_sms_log',
      name: 'menu_operate_sms_log',
      component:SMSSendingLog
    }];

